#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
    
    int N;
    cin>>N;
    unsigned int * ps = new unsigned int[N];
    for(int i = 0; i<N; i++)
        cin>> *(ps+i);
    /*
    //test input
    for(int i = 0; i<N; i++)
        cout<<*(ps+i)<<endl;
    */
    int sum = 0;
    int min = *ps;
    int max = *ps;
    for(int i = 0; i<N; i++)
    {
        sum = sum + *(ps+i);
        if(min > *(ps+i)) min = *(ps+i);
        if(max < *(ps+i)) max = *(ps+i);
    }
    
    cout<<fixed<<setprecision(2)<<"average = "<<(double)sum/N<<endl;
    cout<<fixed<<setprecision(2)<<"max = "<<(double)max<<endl;
    cout<<fixed<<setprecision(2)<<"min = "<<(double)min<<endl;

    delete [] ps;
}